package com.novax.ex.activity.provider.handler.provider;

import com.novax.ex.common.constant.MqConstants;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.stereotype.Component;

import jakarta.annotation.Resource;

/**
 * @Description
 * @Author zhaolei
 * @Date 10/24/24 5:01 PM
 * @Version 1.0
 */
@Slf4j
@Component
public class BeebInternalOrderProvider {
    @Resource
    private AmqpTemplate amqpTemplate;
    public void sendMsg(String key,String message) {
       // kafkaTemplate.send("userBeebInit",key, message);
        amqpTemplate.convertAndSend(MqConstants.Queue.BEEB_INTERNAL_ORDER, message);
    }

    public void sendMsgHistory(String key,String message) {
        // kafkaTemplate.send("userBeebInit",key, message);
        amqpTemplate.convertAndSend(MqConstants.Queue.BEEB_INTERNAL_ORDER_HISTORY, message);
    }
}
